home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / What's New? / Development Kits / Mac OS / USB DDK 1.4.6f4 / Examples / DropPrint•USB / dropshell.r < prev    next >
Encoding:
Text File  |  2000-09-25  |  10.6 KB  |  399 lines  |  [TEXT/MPS ]

  1. #include "types.r"
  2.  
  3. #define PROGRAM_NAME    "DropPrint•USB"
  4.  
  5. resource 'MENU' (128, "Apple") {
  6.     128,
  7.     textMenuProc,
  8.     0x7FFFFFFD,
  9.     enabled,
  10.     apple,
  11.     {    /* array: 2 elements */
  12.         /* [1] */
  13.         "About " PROGRAM_NAME "…", noIcon, noKey, noMark, plain,
  14.         /* [2] */
  15.         "-", noIcon, noKey, noMark, plain
  16.     }
  17. };
  18.  
  19. resource 'MENU' (129, "File") {
  20.     129,
  21.     textMenuProc,
  22.     allEnabled,
  23.     enabled,
  24.     "File",
  25.     {    /* array: 2 elements */
  26.         /* [1] */
  27.         "Select File…", noIcon, "O", noMark, plain,
  28.         /* [2] */
  29.         "Quit", noIcon, "Q", noMark, plain
  30.     }
  31. };
  32.  
  33. data 'hmnu' (128, purgeable) {
  34.     $"0002 0000 0000 0000 0000 0002 0004 0100"            /* ................ */
  35.     $"0004 0100 0014 0003 0080 0001 0080 0001"            /* .........Ä...Ä.. */
  36.     $"0000 0000 0000 0000"                                /* ........ */
  37. };
  38.  
  39. data 'hmnu' (129, purgeable) {
  40.     $"0002 0000 0000 0000 0000 0003 0004 0100"            /* ................ */
  41.     $"0014 0003 0081 0001 0081 0002 0081 0003"            /* .....Å...Å...Å.. */
  42.     $"0081 0004 0014 0003 0081 0005 0081 0006"            /* .Å.......Å...Å.. */
  43.     $"0000 0000 0000 0000 0014 0003 0081 0007"            /* .............Å.. */
  44.     $"0081 0008 0000 0000 0000 0000"                      /* .Å.......... */
  45. };
  46.  
  47. data 'ALRT' (128, purgeable) {
  48.     $"004B 004F 00C6 0172 0080 4444 300A" 
  49. };
  50. /*
  51. resource 'ALRT' (128, purgeable) {
  52.     {75, 79, 198, 370},
  53.     128,
  54.     {
  55.         OK, visible, silent,
  56.         OK, visible, silent,
  57.         OK, visible, silent,
  58.         OK, visible, silent
  59.     },
  60.     alertPositionMainScreen
  61. };
  62. */
  63.  
  64. resource 'ALRT' (200, purgeable) {
  65.     {100, 120, 224, 452},
  66.     200,
  67.     {    /* array: 4 elements */
  68.         OK, visible, silent,
  69.         OK, visible, silent,
  70.         OK, visible, silent,
  71.         OK, visible, silent
  72.     },
  73.     alertPositionMainScreen
  74. };
  75.  
  76.  
  77. resource 'DITL' (128, purgeable) {
  78.     {    /* array DITLarray: 3 elements */
  79.         /* [1] */
  80.         {97, 208, 117, 280},
  81.         Button {
  82.             enabled,
  83.             "OK"
  84.         },
  85.         /* [2] */
  86.         {8, 8, 87, 281},
  87.         StaticText {
  88.             disabled,
  89.             PROGRAM_NAME " sends data to USB printers.\n\nApple Contact: Olav Andrade olav@apple.com"
  90.         },
  91.         /* [3] */
  92.         {0, 0, 0, 0},
  93.         HelpItem {
  94.             disabled,
  95.             HMScanhdlg {
  96.                 1
  97.             }
  98.         }
  99.     }
  100. };
  101.  
  102. resource 'DITL' (200, purgeable) {
  103.     {    /* array DITLarray: 4 elements */
  104.         /* [1] */
  105.         {92, 246, 112, 318},
  106.         Button {
  107.             enabled,
  108.             "OK"
  109.         },
  110.         /* [2] */
  111.         {11, 73, 75, 318},
  112.         StaticText {
  113.             disabled,
  114.             "^0"
  115.         },
  116.         /* [3] */
  117.         {11, 11, 43, 43},
  118.         Icon {
  119.             disabled,
  120.             0
  121.         },
  122.         /* [4] */
  123.         {96, 11, 112, 100},
  124.         StaticText {
  125.             disabled,
  126.             "Error #^1"
  127.         }
  128.     }
  129. };
  130.  
  131. data 'hdlg' (128, purgeable) {
  132.     $"0002 0000 0000 0004 0000 0003 0002 0004"            /* ................ */
  133.     $"0100 0020 0003 0000 0000 0000 0000 0000"            /* ... ............ */
  134.     $"0000 0080 0002 0000 0000 0000 0000 0000"            /* ...Ä............ */
  135.     $"0000 0020 0003 0000 0000 0000 0000 0000"            /* ... ............ */
  136.     $"0000 0000 0000 0080 0003 0000 0000 0000"            /* .......Ä........ */
  137.     $"0000"                                               /* .. */
  138. };
  139.  
  140. data 'hdlg' (200, purgeable) {
  141.     $"0002 0000 0000 0004 0000 0003 0004 0004"            /* ................ */
  142.     $"0100 0020 0003 0000 0000 0000 0000 0000"            /* ... ............ */
  143.     $"0000 00C8 0001 0000 0000 0000 0000 0000"            /* ...»............ */
  144.     $"0000 0020 0003 0000 0000 0000 0000 0000"            /* ... ............ */
  145.     $"0000 0000 0000 00C8 0002 0000 0000 0000"            /* .......»........ */
  146.     $"0000 0004 0100 0020 0003 0000 0000 0000"            /* ....... ........ */
  147.     $"0000 0000 0000 0000 0000 00C8 0003 0000"            /* ...........».... */
  148.     $"0000 0000 0000"                                     /* ...... */
  149. };
  150.  
  151. resource 'STR#' (128, purgeable) {
  152.     {    /* array StringArray: 3 elements */
  153.         /* [1] */
  154.         "Everything you always wanted to know abo"
  155.         "ut " PROGRAM_NAME ", but were afraid to ask",
  156.         /* [2] */
  157.         "Click here to dismiss this informative d"
  158.         "ialog.",
  159.         /* [3] */
  160.         "This text describes the product, its aut"
  161.         "hor, and why!"
  162.     }
  163. };
  164.  
  165. resource 'STR#' (129, purgeable) {
  166.     {    /* array StringArray: 8 elements */
  167.         /* [1] */
  168.         "Use this menu to select a file and to ex"
  169.         "it the program.",
  170.         /* [2] */
  171.         "Use this menu to select a file and to ex"
  172.         "it the program. This menu is unavailable"
  173.         " now.",
  174.         /* [3] */
  175.         "Use this menu to select a file and to ex"
  176.         "it the program. This menu is unavailable"
  177.         " until you respond to the alert box or d"
  178.         "ialog box.",
  179.         /* [4] */
  180.         "This command is unavailable until you re"
  181.         "spond to the alert box or dialog box.",
  182.         /* [5] */
  183.         "Use this command to select a file.",
  184.         /* [6] */
  185.         "Use this command to select a file. Not a"
  186.         "vailable for some strange reason.",
  187.         /* [7] */
  188.         "Use this command to exit the program.",
  189.         /* [8] */
  190.         "Use this command to exit the program. No"
  191.         "t available for some strange reason."
  192.     }
  193. };
  194.  
  195. resource 'STR#' (100) {
  196.     {    /* array StringArray: 2 elements */
  197.         /* [1] */
  198.         "This application requires Apple events. "
  199.         " Please upgrade to System 7.0 or later t"
  200.         "o use.",
  201.         /* [2] */
  202.         "An error occured during Apple event proc"
  203.         "essing."
  204.     }
  205. };
  206.  
  207. resource 'STR#' (200, purgeable) {
  208.     {    /* array StringArray: 3 elements */
  209.         /* [1] */
  210.         "Click here to dismiss this informative d"
  211.         "ialog.",
  212.         /* [2] */
  213.         "This text describes the error that occur"
  214.         "ed.",
  215.         /* [3] */
  216.         "This error ID gives more specific detail"
  217.         "s of the error."
  218.     }
  219. };
  220.  
  221. resource 'SIZE' (1) {
  222.     reserved,
  223.     acceptSuspendResumeEvents,
  224.     reserved,
  225.     canBackground,
  226.     multiFinderAware,
  227.     backgroundAndForeground,
  228.     dontGetFrontClicks,
  229.     ignoreChildDiedEvents,
  230.     is32BitCompatible,
  231.     isHighLevelEventAware,
  232.     localAndRemoteHLEvents,
  233.     notStationeryAware,
  234.     dontUseTextEditServices,
  235.     reserved,
  236.     reserved,
  237.     reserved,
  238.     400*1024,
  239.     2048*1024
  240. };
  241.  
  242.  
  243. resource 'FREF' (128) {
  244.     'APPL',
  245.     0,
  246.     ""
  247. };
  248.  
  249. resource 'FREF' (129) {
  250.     '****',
  251.     1,
  252.     ""
  253. };
  254.  
  255. data 'hfdr' (-5696) {
  256.     $"0002 0000 0000 0000 0000 0001 003C 0001"            /* .............<.. */
  257.     $"3644 7261 6720 616E 7920 6669 6C65 206F"            /* 6Drag any file o */
  258.     $"6E74 6F20 7468 6973 2069 636F 6E2C 2061"            /* nto this icon, a */
  259.     $"6E64 2049 2077 696C 6C20 6D61 6769 6361"            /* nd I will magica */
  260.     $"6C6C 7920 3F3F 3F00"                                /* lly ???. */
  261. };
  262.  
  263. resource 'WIND' (128) {
  264.     {79, 171, 104, 470},
  265.     movableDBoxProc,
  266.     visible,
  267.     noGoAway,
  268.     0x0,
  269.     "DropShell Splash Screen",
  270.     centerMainScreen
  271. };
  272.  
  273. resource 'PICT' (128, "Splash") {
  274.     972,
  275.     {0, 0, 25, 299},
  276.     $"1101 A030 39A0 0082 0100 0A00 0000 0000"
  277.     $"1901 3099 0026 0000 0000 0019 0130 0000"
  278.     $"0000 0019 012B 0000 0000 0019 012B 0000"
  279.     $"000A 0000 0000 0019 012B 1602 FFFF C0FB"
  280.     $"0001 3FFC F800 0201 FFFE FB00 01FF E0FA"
  281.     $"001D 02FF FFC0 FB00 017F FEFD 0001 01FC"
  282.     $"FE00 0401 FFFF 01F8 FD00 01FF F8FA 0026"
  283.     $"FEFF 228F EFC3 FF80 00FF FEFF E007 8007"
  284.     $"FF1F FF00 01FF FF07 FE03 FC00 00FF FC3F"
  285.     $"FE7F 03F7 FFE0 2725 5FFF FF8F EFC7 FFC0"
  286.     $"00FF FEFF F00F C00F FF9F FF80 01FF FF1F"
  287.     $"FF87 FF00 00FF FE3F FF7F 03F7 FFE0 2725"
  288.     $"5FFD DF87 EFC7 FFC0 01FF FEFF F80F C01F"
  289.     $"FFDF FF80 00FE 7F9F FFC7 FF80 00FF FE3F"
  290.     $"FF7F 83E6 FFE0 2725 5FF0 9F03 EFCF FFC0"
  291.     $"01FC 6E7F FC1F C03F FFCF 9F80 00FC 63BF"
  292.     $"EFC7 FF80 00FF FF1F 3F3F 83E2 FF60 2725"
  293.     $"03F0 9F03 E7CF CDC0 00FC 4E7F FE1F E03E"
  294.     $"2BCF 0980 00F8 033F EFE7 FFC0 007E FF9E"
  295.     $"133F C3C2 FE00 2725 03F0 1F03 E78F C4C0"
  296.     $"00FC 467C BE3F E07C 2BEF 0180 00F8 007C"
  297.     $"6CE3 CFC0 007C CF9E 033F E3C0 9E00 2725"
  298.     $"03F0 1F03 E787 E4C0 007E 067C 1E3C F078"
  299.     $"02EF 8000 007C 0078 00F3 CDE0 007C 0F9F"
  300.     $"003F E3C0 1E00 2725 03E0 0F03 E787 F0C0"
  301.     $"003F 003C 1E7C 7078 0067 FE00 007F FC78"
  302.     $"00F3 C0E0 007C 0F8F FC3F E3C0 1C00 2725"
  303.     $"01E0 0E01 E783 F800 001F 803C 1E78 7870"
  304.     $"0027 FE00 007F FC70 0073 E0C0 007C 0F0F"
  305.     $"FC3F F3C0 1C00 2725 01E0 0F01 E7C1 FC00"
  306.     $"000F E01C 3EF0 3870 0003 C400 003E 1870"
  307.     $"0071 E0C0 003C 0F07 883C F3C0 1C00 2725"
  308.     $"01E0 0FFF E3C0 FE00 0007 F03C 7AF0 1C70"
  309.     $"0007 8400 003C 1870 0033 E180 007C 1E0F"
  310.     $"081E 7380 1C00 2725 01E0 0FFF C380 7F00"
  311.     $"0007 F83F F0FF FC30 0003 8400 007C 1030"
  312.     $"0033 E280 007C 7A07 081E 3B80 3C00 2725"
  313.     $"01E0 0F6B 8380 7F00 0003 781F D0FF FC38"
  314.     $"0003 8000 003C 0030 0021 FC40 003F F207"
  315.     $"001E 3F80 3C00 2725 01E0 0701 8384 2F80"
  316.     $"00C2 3C1E 50FF 7C18 0003 8000 003C 0018"
  317.     $"0061 FE00 003F F207 001E 1F80 3C00 2725"
  318.     $"01E0 0703 8306 0780 00E0 3C1C 00E0 1C1C"
  319.     $"00C1 8600 003C 001C 0061 8F00 0038 F003"
  320.     $"0C1E 0F80 3C00 2725 01E0 0601 8307 0780"
  321.     $"0070 3C18 00E0 1C1F 0381 FC00 001C 000F"
  322.     $"01A1 8F00 0038 7803 F816 0380 0C00 2725"
  323.     $"01E0 0401 8303 8F00 0078 7818 00E0 0C0F"
  324.     $"FF01 FC00 001E 000F FF21 8380 0018 7803"
  325.     $"F816 0300 0C00 2725 00E0 0601 8101 FE00"
  326.     $"003F F018 00E0 0809 F901 E400 001E 0009"
  327.     $"FF01 C080 0018 7C03 C806 0300 1800 2719"
  328.     $"00E0 0401 8100 F800 001F E010 00C0 0800"
  329.     $"F000 8000 000E 0000 7C01 FE00 081C 0C01"
  330.     $"0006 0000 1000 2410 00C0 0000 8000 5000"
  331.     $"000F C010 0040 0800 60FD 0004 0E00 0018"
  332.     $"01FE 0004 1C06 0000 02FD 0016 0100 C0FD"
  333.     $"0004 4000 0005 80F7 0000 0CFA 0001 1804"
  334.     $"FA00 1401 0080 FD00 0340 0000 04F6 0000"
  335.     $"04FA 0000 10F9 0006 F800 0004 E500 A000"
  336.     $"83FF"
  337. };
  338.  
  339. resource 'BNDL' (128, "Bundle") {
  340.     '????',
  341.     0,
  342.     {    /* array TypeArray: 2 elements */
  343.         /* [1] */
  344.         'FREF',
  345.         {    /* array IDArray: 2 elements */
  346.             /* [1] */
  347.             0, 128,
  348.             /* [2] */
  349.             1, 129
  350.         },
  351.         /* [2] */
  352.         'ICN#',
  353.         {    /* array IDArray: 2 elements */
  354.             /* [1] */
  355.             0, 128,
  356.             /* [2] */
  357.             1, 0
  358.         }
  359.     }
  360. };
  361.  
  362. data '????' (0) {
  363. };
  364.  
  365. data 'aete' (0, "Apple Events Terminology") {
  366.     $"0090 0000 0000 0001 0E52 6571 7569 7265"            /* .ê.......Require */
  367.     $"6420 5375 6974 652C 4576 656E 7473 2074"            /* d Suite,Events t */
  368.     $"6861 7420 6576 6572 7920 6170 706C 6963"            /* hat every applic */
  369.     $"6174 696F 6E20 7368 6F75 6C64 2073 7570"            /* ation should sup */
  370.     $"706F 7274 7265 7164 0001 0001 0000 0000"            /* portreqd........ */
  371.     $"0000 0000"                                          /* .... */
  372. };
  373.  
  374.  
  375. data 'XREF' (1, purgeable) {
  376.     $"0000 0000 0000 0018 0000 00E8 0000 00F2"            /* ...........Ë...Ú */
  377.     $"0000 02D8 0000 02F0 0000 040E 0000 0416"            /* ...ÿ........... */
  378.     $"0000 04F4 0000 04FE 0000 0544 0000 0568"            /* ...Ù...˛...D...h */
  379.     $"0000 0580 0000 05AC 0000 05D8 0000 0604"            /* ...Ä...¨...ÿ.... */
  380.     $"0000 0630 0000 06BA 0000 06E2 0000 0750"            /* ...0...∫...‚...P */
  381.     $"0000 0810 0000 085A 0000 0874 0000 0A04"            /* .......Z...t.... */
  382.     $"0000 0AFE 0000 0B10 0000 0000"                      /* ...˛........ */
  383. };
  384.  
  385. data 'XREF' (0, purgeable) {
  386.     $"0000 0000 0000 0000 0000 0000"                      /* ............ */
  387. };
  388.  
  389. data 'DATA' (0, purgeable) {
  390.     $"0000 0010 FFFF FFF0 4F70 656E 696E 6700"            /* ....ˇˇˇOpening. */
  391.     $"5175 7474 696E 6700 0000 0000"                      /* Qutting..... */
  392. };
  393.  
  394. data 'vers' (2) {
  395.     $"0200 8000 0000 0332 2E30 0D44 726F 7053"            /* ..Ä....2.0¬DropS */
  396.     $"6865 6C6C 2032 2E30"                                /* hell 2.0 */
  397. };
  398.  
  399.